import 'package:flutter/material.dart';

enum CustomColors {
  softRose('#EA9899'),
  crimsonOrange('#D5493B'),
  vibrantGreen('#49B146'),
  royalPurple('#7573DA'),
  burntOrange('#DE7A59'),
  sunnyYellow('#E7A907'),
  skyBlue('#568D98'),
  lavender('#A095E5'),
  emeraldGreen('#9DB836'),
  crimsonRed('#C36869');

  final String hex;
  const CustomColors(this.hex);

  // Convert hex to Flutter Color
  Color get toColor {
    return Color(int.parse(hex.substring(1, 7), radix: 16) + 0xFF000000);
  }

  // Static method to convert enum to List
  static List<CustomColors> toList() {
    return values.toList();
  }
}